
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 优惠券领取记录表
    /// </summary>
    public partial class CouponRecordInfo:BaseModel
    {
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public long CouponId { get; set; }
        /// <summary>
        /// 优惠券的SN标示
        /// </summary>
        public string CounponSN { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public System.DateTime CounponTime { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        public long UserId { get; set; }
        public Nullable<System.DateTime> UsedTime { get; set; }
        /// <summary>
        /// 使用的订单ID
        /// </summary>
        public Nullable<long> OrderId { get; set; }
        public long ShopId { get; set; }
        public string ShopName { get; set; }
        /// <summary>
        /// 优惠券状态
        /// </summary>
        public CounponStatuses CounponStatus { get; set; }
        /// <summary>
        /// 微信Code记录号 与微信卡券投放记录关联
        /// </summary>
        public Nullable<long> WXCodeId { get; set; }

        public virtual CouponInfo Himall_Coupon { get; set; } 
        public virtual ShopInfo Himall_Shops { get; set; } 
    }
}
